<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport"
        content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1"/>
  <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  <link rel="stylesheet" href="../../../lib/layui/css/layui.css">
  <link rel="stylesheet" href="../../static/css/common.css">
  <link rel="stylesheet" href="../../static/css/record.css">
  <title>马达数据查询</title>
</head>
<body>
<!--头部-->
<!--<header class="tophead" id="headerWrap"></header>-->
<!--主体-->
<section class="mainbody">
<!--  <h3>马达数据查询</h3>-->
  <!--筛选条件-->
  <div class="layui-collapse">
    <div class="layui-colla-item">
      <h2 class="layui-colla-title">筛选历史记录</h2>
      <div class="layui-colla-content layui-show">
        <div class="parameter">
          <form action="#" class="layui-form layui-form-pane layui-clear" lay-filter="parameter">
            <div class="layui-form-item layui-input-inline">
              <!--区域-->
              <div class="layui-inline  layui-form-item ">
                <label class="layui-form-label">区域</label>
                <div class="layui-input-inline area-option-wrap">
                  <select name="areaId" lay-filter="areaMenu" class="layui-bg-blue areaMenu">
                    <option value="0">全部</option>
                  </select>
                </div>
              </div>
              <!--槽位-->
              <div class="layui-inline layui-form-item">
                <label class="layui-form-label">槽位</label>
                <div class="layui-input-inline trough-option-wrap">
                  <select name="troughId" lay-filter="troughMenu" class="layui-bg-blue troughMenu">
                    <option value="0">全部</option>
                  </select>
                </div>
              </div>
              <!--马达-->
              <div class="layui-inline  layui-form-item ">
                <label class="layui-form-label">马达</label>
                <div class="layui-input-inline motor-option-wrap">
                  <select name="moId" lay-filter="motorMenu" class="layui-bg-blue motorMenu">
                    <option value="0">全部</option>
                  </select>
                </div>
              </div>
            </div>
            <div class="layui-form-item layui-input-inline">
              <div class="layui-inline layui-hide">
                <label class="layui-form-label">开始时间</label>
                <div class="layui-input-inline">
                  <input type="text" class="layui-input" id="startDate" name="startTime">
                </div>
              </div>
              <div class="layui-inline">
                <label class="layui-form-label">时间</label>
                <div class="layui-input-inline">
                  <input type="text" class="layui-input" id="endDate" name="endTime">
                </div>
              </div>
            </div>
            <div class="layui-form-item layui-inline layui-btn-group fr">
              <button type="button" class="layui-btn btn-theme layui-btn-sm searchBtn" lay-submit lay-filter="search">查询</button>
              <button type="button" class="layui-btn btn-theme layui-btn-sm exportBtn">导出</button>
              <button type="button" class="layui-btn btn-theme layui-btn-sm printBtn">打印</button>
            </div>
          </form>
        </div>
      </div>
    </div>
  </div>
  <!--表格-->
  <div class="tables">
    <table lay-filter="motorRecord" lay-data="{id: 'motorRecord'}" class="reportTable"></table>
  </div>
</section>
</body>
</html>
<!--区域模板-->
<script type="text/html" id="motor-areas-tpl">
  <option value="0">全部</option>
  {{each data}}
  <option value="{{$value.areaId}}">{{$value.areaName}}</option>
  {{/each}}
</script>
<!--槽位模板-->
<script type="text/html" id="motor-trough-tpl">
  <option value="0">全部</option>
  {{each data}}
  <option value="{{$value.troughId}}">{{$value.troughName}}</option>
  {{/each}}
</script>
<!--马达模板-->
<script type="text/html" id="motors-tpl">
  <option value="0">全部</option>
  {{each data}}
  <option value="{{$value.moId}}">{{$value.moName}}</option>
  {{/each}}
</script>
<script src="../../../lib/layui/layui.js"></script>
<script src="../../static/js/common.js"></script>
<script src="../../static/js/file/motors-rec.js"></script>
